//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02A
TN_Widget.CreateTable([['Chelsea Grin','Workplay Theatre','Birmingham, AL','Friday','5/3/2024','8:00 PM','6393105','Chelsea-Grin-5-3-2024'],['Chelsea Grin','Red Flag','St. Louis, MO','Saturday','5/4/2024','8:00 PM','6350333','Chelsea-Grin-5-4-2024'],['As I Lay Dying','The Catalyst','Santa Cruz, CA','Tuesday','7/9/2024','7:30 PM','6292809','As-I-Lay-Dying-7-9-2024'],['As I Lay Dying','Ace of Spades','Sacramento, CA','Wednesday','7/10/2024','8:00 PM','6293435','As-I-Lay-Dying-7-10-2024'],['As I Lay Dying','Roseland Theater','Portland, OR','Friday','7/12/2024','7:30 PM','6292810','As-I-Lay-Dying-7-12-2024'],['As I Lay Dying','Temple Theatre - Tacoma','Tacoma, WA','Saturday','7/13/2024','7:30 PM','6293476','As-I-Lay-Dying-7-13-2024'],['As I Lay Dying','Knitting Factory Concert House - Boise','Boise, ID','Sunday','7/14/2024','7:30 PM','6293436','As-I-Lay-Dying-7-14-2024'],['As I Lay Dying','Rockwell At The Complex','Salt Lake City, UT','Monday','7/15/2024','7:00 PM','6293437','As-I-Lay-Dying-7-15-2024'],['As I Lay Dying','The Summit Music Hall','Denver, CO','Tuesday','7/16/2024','8:00 PM','6293438','As-I-Lay-Dying-7-16-2024'],['As I Lay Dying','The Truman - Kansas City','Kansas City, MO','Wednesday','7/17/2024','7:30 PM','6293473','As-I-Lay-Dying-7-17-2024'],['As I Lay Dying','Intersection','Grand Rapids, MI','Friday','7/19/2024','9:00 PM','6256009','As-I-Lay-Dying-7-19-2024'],['As I Lay Dying','House Of Blues - Chicago','Chicago, IL','Sunday','7/21/2024','7:30 PM','6293439','As-I-Lay-Dying-7-21-2024'],['As I Lay Dying','Empire Live','Albany, NY','Tuesday','7/23/2024','7:30 PM','6293444','As-I-Lay-Dying-7-23-2024'],['As I Lay Dying','Irving Plaza','New York, NY','Wednesday','7/24/2024','6:30 PM','6293446','As-I-Lay-Dying-7-24-2024'],['As I Lay Dying','Theatre Of The Living Arts','Philadelphia, PA','Thursday','7/25/2024','7:30 PM','6293447','As-I-Lay-Dying-7-25-2024'],['As I Lay Dying','The Fillmore Silver Spring','Silver Spring, MD','Friday','7/26/2024','8:00 PM','6293464','As-I-Lay-Dying-7-26-2024'],['As I Lay Dying','The Norva','Norfolk, VA','Saturday','7/27/2024','7:30 PM','6293474','As-I-Lay-Dying-7-27-2024'],['As I Lay Dying','The Fillmore - Charlotte','Charlotte, NC','Monday','7/29/2024','7:30 PM','6293465','As-I-Lay-Dying-7-29-2024'],['As I Lay Dying','Heaven Stage at Masquerade - GA','Atlanta, GA','Tuesday','7/30/2024','7:00 PM','6293467','As-I-Lay-Dying-7-30-2024'],['As I Lay Dying','Jannus Live','St. Petersburg, FL','Wednesday','7/31/2024','7:00 PM','6293478','As-I-Lay-Dying-7-31-2024'],['As I Lay Dying','House Of Blues - Houston','Houston, TX','Friday','8/2/2024','7:00 PM','6293469','As-I-Lay-Dying-8-2-2024'],['As I Lay Dying','The Factory in Deep Ellum','Dallas, TX','Saturday','8/3/2024','8:00 PM','6293475','As-I-Lay-Dying-8-3-2024'],['As I Lay Dying','Vibes Event Center','San Antonio, TX','Sunday','8/4/2024','7:30 PM','6292890','As-I-Lay-Dying-8-4-2024'],['As I Lay Dying','The El Rey Theater - NM','Albuquerque, NM','Tuesday','8/6/2024','8:00 PM','6293479','As-I-Lay-Dying-8-6-2024'],['As I Lay Dying','The Van Buren','Phoenix, AZ','Wednesday','8/7/2024','8:00 PM','6293470','As-I-Lay-Dying-8-7-2024'],['As I Lay Dying','Belasco Theater - LA','Los Angeles, CA','Thursday','8/8/2024','8:00 PM','6293471','As-I-Lay-Dying-8-8-2024'],['As I Lay Dying','The Observatory - North Park','San Diego, CA','Saturday','8/10/2024','8:00 PM','6278078','As-I-Lay-Dying-8-10-2024']],'Chelsea Grin','http://www.ticketnetwork.com/ticket/Chelsea-Grin-events.aspx');